Keyword Reference

Default

Keyword value use in function call.

    $var = Default

 

Parameters

None.

 

Remarks

This keyword should not be used in computation expression. AutoIt will not detect such situation because it's too much performance penalty.

When used as a parameter passing the behavior is specify in the corresponding AutoIt doc function.
For UDF it is the scripter responsabitly to check is the parameter has been set to Default keyword and to do the behavior he wants.
The passed parameter will be set to Default keyword not to and optional parameter value if defined.

 

Related

IsKeyWord

 

Example


WinMove("","",default, default, 200,300)    ; just resize the active window (no move)

MyFunc2(Default,Default)

Func MyFunc2($Param1 = Default, $Param2 = 'Two', $Param3 = Default)
    If $Param1 = Default Then $Param1 = 'One'
    If $Param3 = Default Then $Param3 = 'Three'

    MsgBox(0, 'Params', '1 = ' & $Param1 & @LF & _
        '2 = ' & $Param2 & @LF & _
        '3 = ' & $Param3)
EndFunc